﻿package cgs.server.logging
{

    public class CGSServerConstants extends Object
    {
        public static const BASE_URL:String = "";
        public static const DEV_URL:String = "";
        public static const UUID_REQUEST:String = "muser/get/";
        public static const DQID_REQUEST:String = "logging/getdynamicquestid/";
        public static const LEGACY_QUEST_START:String = "loggingassessment/setquest/";
        public static const QUEST_START:String = "loggingqueststatus/set/";
        public static const QUEST_ACTIONS:String = "logging/set/";
        public static const CREATE_QUEST:String = "questcreate/set/";
        public static const USER_FEEDBACK:String = "loggingprofile/set/";
        public static const ACTION_NO_QUEST:String = "loggingactionnoquest/set/";
        public static const PAGELOAD:String = "loggingpageload/set/";
        public static const SAVE_SCORE:String = "loggingscore/set/";
        public static const SCORE_REQUEST:String = "loggingscore/getscoresbyids/";
        public static const SAVE_GAME_DATA:String = "loggingplayerdata/set/";
        public static const LOAD_USER_GAME_DATA:String = "loggingplayerdata/getbyuid/";
        public static const LOAD_GAME_DATA:String = "loggingplayerdata/getbyudataidnuid/";
        public static const TOS_DATA_ID:String = "tos_status";
        public static const QUESTS_REQUEST:String = "logging/getquestsbyuserid/";
        public static const QUEST_ACTIONS_REQUEST:String = "logging/getactionsbydynamicquestid/";
        public static const PAGE_LOAD_BY_UID_REQUEST:String = "loggingpageload/getbyuid/";
        public static const DEMOGRAPHICS_GET_BY_UID:String = "loggingprofile/getbyuid/";
        public static const LOG_FAILURE:String = "loggingfailure/set/";
        public static const GET_ACTIONS_BY_DQID:String = "logging/getactionsbydynamicquestid/";
        public static const GET_QUESTS_BY_CID_TS:String = "logging/getquestsbycidnts/";
        public static const GET_ACTIONS_BY_CID_TS:String = "logging/getactionsbycidnts/";
        public static const GET_QUESTS_BY_UID:String = "logging/getquestsbyuserid/";
        public static const GET_NO_QUEST_ACTIONS_BY_UID:String = "loggingactionnoquest/getbyuid/";
        public static const GET_PAGELOADS_BY_UID:String = "loggingpageload/getbyuid/";
        public static const GET_PROFILE_BY_UID:String = "loggingprofile/getbyuid/";
        public static const GET_QUEST_STATUS_BY_UID:String = "loggingqueststatus/getbyuid/";
        public static var bufferFlushIntervalStart:int = 2000;
        public static var bufferFlushIntervalEnd:int = 5000;
        public static var bufferFlushRampTime:int = 10000;
        public static var bufferSizeMin:int = 1;
        public static var bufferFlushForceCount:int = 50;
        public static var serverLatency:int = 5;

        public function CGSServerConstants()
        {
            return;
        }// end function

        public function getGameLoggingURL(param1:String) : String
        {
            return "http://" + param1 + ".ws.centerforgamescience.com/cgs/apps/games/ws/index.php/";
        }// end function

    }
}
